import { http } from "@/utils/http";

/**
 * 获取好友列表
 */
export const recentList = () => {
  return http.request<any>("get", "/chat/recent/list");
};

/**
 * 添加好友
 */
export const addRecentFriend = (data?: object) => {
  return http.request<any>("post", "/chat/recent/add", { data });
};

/**
 * 获取联系人信息
 */
export const getRecentInfo = (params?: any) => {
  return http.request<any>("get", "/chat/recent/info", { params });
};
